package com.p595263720.o_amap.search.model;

import com.amap.api.maps.model.LatLng;
import com.amap.api.services.geocoder.GeocodeAddress;

public class UnifiedGeocodeAddress {

    private String formatAddress;
    private String province;
    private String city;
    private String district;
    private String township;
    private String neighborhood;
    private String building;
    private String adcode;
    private LatLng latLng;
    private String level;
    public  UnifiedGeocodeAddress(GeocodeAddress geocodeAddress){
        this.formatAddress = geocodeAddress.getFormatAddress();
        this.province = geocodeAddress.getProvince();
        this.city = geocodeAddress.getCity();
        this.district = geocodeAddress.getDistrict();
        this.township = geocodeAddress.getTownship();
        this.neighborhood = geocodeAddress.getNeighborhood();
        this.building = geocodeAddress.getBuilding();
        this.adcode= geocodeAddress.getAdcode();
        this.latLng = UnifiedSearchBound.toLatLng(geocodeAddress.getLatLonPoint());
        this.level = geocodeAddress.getLevel();
    }

}
